package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import com.geccocrawler.gecco.spider.SpiderBean;

@Gecco(matchUrl = "http://zp.hnzpsc.com/jobs/{recruitId}.html", pipelines = { "saveDxrcContactPipeline" })
public class DxrcContactPage implements HtmlBean, SpiderBean {

    @Request
    private HttpRequest request;

    @RequestParameter
    private String recruitId;

    @Text
    @HtmlField(cssPath = "div.add")
    private String workPlace;

    @Text
    @HtmlField(cssPath = "div.contact > div:nth-child(2)")
    private String contactPerson;

    @Text
    @HtmlField(cssPath = "div.contact > div:nth-child(4) > span")
    private String phone;

    @Text
    @HtmlField(cssPath = "div.cominfo > div:nth-child(4)")
    private String industryName;

    @Text
    @HtmlField(cssPath = "div.cominfo > div:nth-child(5)")
    private String persons;

    @Text
    @HtmlField(cssPath = "div.cominfo > div:nth-child(6)")
    private String address;

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public String getRecruitId() {
        return recruitId;
    }

    public void setRecruitId(String recruitId) {
        this.recruitId = recruitId;
    }

    public String getWorkPlace() {
        return workPlace;
    }

    public void setWorkPlace(String workPlace) {
        this.workPlace = workPlace;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public String getPersons() {
        return persons;
    }

    public void setPersons(String persons) {
        this.persons = persons;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
